package com.tianpengtech.admin;

import com.jfinal.config.Routes;
import com.tianpengtech.admin.account.AccountAdminController;
import com.tianpengtech.admin.dictionary.DictionaryAdminController;
import com.tianpengtech.admin.permission.PermissionAdminController;
import com.tianpengtech.admin.role.RoleAdminController;
import com.tianpengtech.common.plugin.shiro.ext.ShiroInterceptor;

public class AdminRoutes extends Routes{

	@Override
	public void config() {
		setBaseViewPath("/WEB-INF/view");
		addInterceptor(new ShiroInterceptor());
		add("/admin", AdminCommonController.class, "/admin");
		add("/admin/role", RoleAdminController.class, "/admin/role");
		add("/admin/permission", PermissionAdminController.class, "/admin/permission");
		add("/admin/account", AccountAdminController.class, "/admin/account");
		add("/admin/dictionary",DictionaryAdminController.class, "/admin/dictionary");
	}
}
